#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding=utf8

# 本文件由自动工具 proto.py 自动生成，请勿修改
# filename msg20000_csbuf.py
# package ptl



# message Req20001
class Req20001:
	def __init__(self):
		self.protoid = 20001
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp20001
class Resp20001:
	def __init__(self):
		self.protoid = 20001
		self.difficulty = []

	def Marshal(writer):
		countdifficulty = len(self.difficulty)
		writer.setArray(countdifficulty, 1)
		for i in range(countdifficulty):
			writer.setInt32(self.difficulty[i], 0)

	def Unmarshal( reader):
		for i in range(reader.getArray(1)):
			self.difficulty.append(reader.getInt32(0))
# message Req20002
class Req20002:
	def __init__(self):
		self.protoid = 20002
		self.defference = 0
		self.difficulty = 0

	def Marshal(writer):
		writer.setUint32(self.defference, 1)
		writer.setUint32(self.difficulty, 2)

	def Unmarshal( reader):
		self.defference = reader.getUint32(1)
		self.difficulty = reader.getUint32(2)
# message Resp20002
class Resp20002:
	def __init__(self):
		self.protoid = 20002
		self.status = 0

	def Marshal(writer):
		writer.setUint32(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint32(1)
